<?php

    include 'controller.php';
    include 'base.php';
    include 'router.php';
    include 'view.php';

    /**
     * Auto load model classes
     * @param string $class_name
     * @return boolean
     */
   function __autoload($class_name) {
       $filename = strtolower($class_name) . '.php';
       $file = __SITE_PATH . '/model/' . $filename;

       if (file_exists($file) == false)
       {
           return false;
       }
     include ($file);
   }



?>